package com.sonicvision.resourcetracker.employee;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sonicvision.resourcetracker.exceptions.DAOException;
import com.sonicvision.resourcetracker.exceptions.ServiceException;

@Service
public class EmployeeDocumentsServiceImpl implements EmployeeDocumentsService {

	@Autowired
	private EmployeeDocumentsDAO dao;
	
	@Override
	public void addEmpDoc(EmployeeDocuments employeeDoc)
			throws ServiceException {
		  try {
			dao.addEmpDoc(employeeDoc);
		} catch (DAOException e) {
			e.printStackTrace();
		}

	}

	@Override
	public void updateEmpDoc(EmployeeDocuments document_Id)
			throws ServiceException {
		try {
			dao.updateEmpDoc(document_Id);
		} catch (DAOException e) {
			e.printStackTrace();
		}

	}

	@Override
	public void deleteEmpDoc(EmployeeDocuments document_Id)
			throws ServiceException {
		try {
			dao.deleteEmpDoc(document_Id);
		} catch (DAOException e) {
			e.printStackTrace();
		}

	}

}
